package cn.leaf.uc.api.entity;

import cn.leaf.database.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
    * 角色和部门关联表
    */
@Data
@EqualsAndHashCode(callSuper=true)
@Builder
@TableName(value = "t_department_role")
public class DepartmentRoleEntity extends BaseEntity implements Serializable {
    /**
     * 角色ID
     */
    @TableField(value = "role_id")
    private Long roleId;

    /**
     * 部门ID
     */
    @TableField(value = "department_id")
    private Long departmentId;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_ROLE_ID = "role_id";

    public static final String COL_DEPARTMENT_ID = "department_id";
}